import request from '@/utils/request'

// 查询会员积分明细列表
export function listSlIntegralDetails(query) {
  return request({
    url: '/projects/SlIntegralDetails/list',
    method: 'get',
    params: query
  })
}

// 查询会员积分明细详细
export function getSlIntegralDetails(id) {
  return request({
    url: '/projects/SlIntegralDetails/' + id,
    method: 'get'
  })
}

// 新增会员积分明细
export function addSlIntegralDetails(data) {
  return request({
    url: '/projects/SlIntegralDetails',
    method: 'post',
    data: data
  })
}

// 修改会员积分明细
export function updateSlIntegralDetails(data) {
  return request({
    url: '/projects/SlIntegralDetails',
    method: 'put',
    data: data
  })
}

// 删除会员积分明细
export function delSlIntegralDetails(id) {
  return request({
    url: '/projects/SlIntegralDetails/' + id,
    method: 'delete'
  })
}
